<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>考试安排新增</title>
</head>
<body bgcolor="#d3eaef">
   <fieldset style="width:50%; margin-left: 25%; margin-top:5%">
	  <legend style="font-size: 25px; text-align:center">考试安排新增</legend>
<form id="myform1" name="myform1" action="<%=request.getContextPath()%>/teach/examplan/ExamPlanServlet?command=explanAdd" method="post">
	  <table border="0" style="font-size: 16px; width:100%; text-align:left">
	    <tr>
	      <th>试卷名称:</th>
	      <th><select name="paperName" style=" width:100% ; height:30px">
	           <option value=""　align="center" >　请选择　</option>
	           <c:forEach items="${paperList }" var="paper">
	             <option name="papername" value="${paper.id }"  >　${paper.name }　</option>
	           </c:forEach>
	         </select>
	      </th>
	    </tr>
	    <tr>
	      <th colspan="3"><hr></th>
	    </tr>
	    <tr>
	      <th width=20%>考试教室:</th>
	      <th><input type="text" name="classroom" value="" style=" width:100% ; height:25px"/></th>
	    </tr>
	    <tr>
	      <th colspan="3"><hr></th>
	    </tr>
	    <tr>
	      <th>考试时间段:</th>
	      <th><input type="datetime-local" name="exam_Time_Start" value="" style=" width:45% ; height:30px"/>—
	          <input type="datetime-local" name="exam_Time_Stop" value="" style=" width:46% ; height:30px"/>  
	      </th>
	    </tr>
	    <tr>
	     <th colspan="3"><hr></th>
	    </tr>
	    <tr>
	      <th>考试班级:</th>
	      <th><select name="className" style=" width:100% ; height:30px">
	            <option value=""　align="center" >　请选择　</option>
	             <c:forEach items="${classList }" var="class1">
	               <option value="${class1.id }" >${class1.name }</option>
	             </c:forEach>
	         </select>
	      </th>
	    </tr>
	    <tr>
	      <th colspan="3"><hr></th>
	    </tr>
	    <tr>
	       <th>补考学员:</th>
	       <th>
	            <input type="checkbox" name="vehicle" value="Bike" />我有一辆自行车<br />
				<input type="checkbox" name="vehicle" value="Car" />我有一辆汽车<br />
				<input type="checkbox" name="vehicle" value="Airplane" />我有一架飞机<br />
		   </th>
	     </tr>
	     <tr>
	      <th colspan="3"><hr></th>
	    </tr>
	    <tr>
	      <th>操作者:</th>
	      <th>${mangerName }</th>
	    </tr>
	    <tr>
	      <th colspan="3"><hr></th>
	    </tr>
	    <tr>
	       <th>操作时间:</th>
	       <th>
	          <c:set var="now" value="<%=new java.util.Date()%>"/>
	          <fmt:formatDate value="${now}" pattern="yyyy-MM-dd HH:mm:ss"/>
	       </th>
	    </tr>
	    <tr>
	      <th colspan="3"><hr></th>
	    </tr>
	    <tr>
	      <th>状　　态:</th>
	      <th>
	         <select name="state" style=" width:100% ; height:30px">
                <c:set var ="state" value="${state }"></c:set>
                <option value="1"　align="center">　有效　</option> 
                <option value="2" align="center">　待生效　</option>
            </select>
	      </th>
	    </tr>
	    <tr>
	      <th colspan="3"><hr></th>
	    </tr>
	    <tr>
	      <th>备　　注:</th>
	      <th ><input type="text" name="memo" value="" style=" width:100% ; height:25px"/></th>
	    </tr>
	    <tr>
	      <th colspan="3"><hr></th>
	    </tr>
	    <tr>
	      <th></th>
	      <th colspan="2">
	        <input type="submit" value="新增" onclick="return confirm('是否新增？');" style="width:120px ; height:25px">
            <input type="reset" name="button" id="button" value="重置" onClick="return()" style="width:120px ; height:25px">
	      </th>
	    </tr>
	    <tr>
	      <th colspan="3"><a href="<%=request.getContextPath()%>/teach/examplan/ExamPlanServlet?command=list" style="text-decoration:none;">返回主页</a></th>
	    </tr>
	  </table></form>
  </fieldset>
<script type="text/javascript">
    //重置功能
	  function hanshu(){
	     window.location.href= 'view/teach/examplan/examplan-add.jsp'  /*返回本页面*/
	   }
</script>
</body>
</html>